package com.rtx.wms.std.cc.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rtx.api.annotation.DataSourceAnnotation;
import com.rtx.wms.std.cc.bean.RtxCCProduct;
import com.rtx.wms.std.cc.mapper.RtxCCProductMapper;
import com.rtx.wms.std.cc.service.RtxCCProductService;

@Service
public class RtxCCProductServiceImpl extends ServiceImpl<RtxCCProductMapper, RtxCCProduct> implements RtxCCProductService{

	@DataSourceAnnotation
	@Override
	public void insert(String datasourcekey, RtxCCProduct cc) {
		cc.setSerialkey(null);
		this.save(cc);
	}

	@DataSourceAnnotation
	@Override
	public List<RtxCCProduct> queryByCondition(String datasourcekey, Wrapper<RtxCCProduct> query) {
		return this.list(query);
	}

	@DataSourceAnnotation
	@Override
	public void updStatus(String datasourcekey, Wrapper<RtxCCProduct> upd) {
		this.update(upd);
	}

}
